#include "debug.h"
#include <iostream>

#ifndef MSN_H
#define MSN_H

namespace dkim
{
	class msn
	{
	private:
		int trialId_;
		dkim::Debug *debug_;
	public:
		msn(dkim::Debug *debug);
		unsigned long domainToAddr(std::string domain);
		SOCKET getSocket();
		void connectByDomain(SOCKET socket, std::string domain,
			unsigned short port);
		void connectByIp(SOCKET socket, std::string ip,
			unsigned short port);
		void closeSocket(SOCKET socket);
		void putServer(SOCKET socket, std::string message);
		std::string getServer(SOCKET socket);
		virtual ~msn();
	};
}

#endif